package com.houger.jdk16;

import lombok.Data;

public class Outer {
    private static Inner INNER;
    public Outer(int age){
        INNER = new Inner();
        INNER.setAge(age);
    }
    public int getInnerAge(){
        return INNER.getAge();
    }
    @Data
    class Inner {
        static int AGE;

        public void setAge(int age){
            Inner.AGE=age;
        }

        public int getAge(){
            return Inner.AGE;
        }

    }

}